import 'package:app_30/models/detail_entity.dart';

detailEntityFromJson(DetailEntity data, Map<String, dynamic> json) {
  if (json['user'] != null) {
    data.user = json['user'].toString();
  }
  if (json['pay'] != null) {
    data.pay = json['pay'].toString();
  }
  if (json['txzh'] != null) {
    data.txzh = json['txzh'].toString();
  }
  if (json['txxm'] != null) {
    data.txxm = json['txxm'].toString();
  }
  if (json['txje'] != null) {
    data.txje = json['txje'].toString();
  }
  if (json['txtime'] != null) {
    data.txtime = json['txtime'].toString();
  }
  if (json['endtime'] != null) {
    data.endtime = json['endtime'].toString();
  }
  if (json['txend'] != null) {
    data.txend = json['txend'].toString();
  }

  return data;
}
